package kiwi.assist.dev.guieditor.event {
	import flash.events.Event;

	/**
	 * @author zhangming.luo
	 */
	public class GUIEditorEvent extends Event {
		public static const UI_CREATE : String = "UI_CREATE";
		/**
		 * 初始化默认配置
		 */
		public static const INIT_CONFIG : String = "INIT_CONFIG";
		/**
		 * 初始化具体的游戏配置
		 */
		public static const INIT_GAMECONFIG : String = "INIT_GAMECONFIG";
		/**
		 * 配置变更
		 */
		public static const CONFIG_CHANGE : String = "CONFIG_CHANGE";
		/**
		 * 样式变更
		 */
		public static const STYLE_CHANGE : String = "STYLE_CHANGE";
		/**
		 * 具体的样式包选择
		 */
		public static const STYLE_SELECTION_CHANGE : String = "STYLE_SELECTION_CHANGE";
		/**
		 * 图层显示/锁定
		 */
		public static const LAYER_CHANGE : String = "LAYER_CHANGE";
		/**
		 * 皮肤选择(触发预览用)
		 */
		public static const SKIN_SELECTION_CHANGE : String = "SKIN_SELECTION_CHANGE";
		/**
		 * 主界面ui初始化结束
		 */
		public static const VIEW_COMPLETE : String = "VIEW_COMPLETE";
		/**
		 * 读取ui描述文档
		 */
		public static const LOAD_UIXML : String = "LOAD_UIXML";
		/**
		 * 保存ui描述文档
		 */
		public static const SAVE_UIXML : String = "SAVE_UIXML";
		/**
		 * 导出as代码
		 */
		public static const PUBLISH_AS : String = "PUBLISH_AS";
		/**
		 * 导出js代码
		 */
		public static const PUBLISH_JS : String = "PUBLISH_JS";
		/**
		 * 选择容器
		 */
		public static const SHOW_CONTAINER_SELECT_DIALOG : String = "SHOW_CONTAINER_SELECT_DIALOG";
		/**
		 * 容器变了
		 */
		public static const CONTAINER_CHANGE : String = "CONTAINER_CHANGE";
		/**
		 * 选择背景
		 */
		public static const SHOW_BACKGROUND_SELECT_DIALOG : String = "SHOW_BACKGROUND_SELECT_DIALOG";
		/**
		 *ui选择器 
		 */
		public static const SHOW_UI_SELECT_DIALOG : String = "SHOW_UI_SELECT_DIALOG";
		/**
		 * 重置所有的设置创建新的文档
		 */
		public static const NEW_PROJECT : String = "NEW_PROJECT";
		/**
		 * 初始化完毕(包括读取游戏配置等等)
		 */
		public static const INIT_COMPLETE : String = "INIT_COMPLETE";
		/**
		 * 批量发布
		 */
		public static const BATCH_PUBLISH : String = "BATCH_PUBLISH";
		/**
		 * 加载完毕
		 */
		public static const BUILD_COMPLETE : String = "REBUILD_COMPLETE";
		/**
		 * 发布完毕
		 */
		public static const PUBLISH_AS_COMPLETE : String = "PUBLISH_AS_COMPLETE";
		public var data : *;

		public function GUIEditorEvent(event : String, data : * = null) {
			this.data = data;
			super(event);
		}

		override public function clone() : Event {
			var event : GUIEditorEvent = new GUIEditorEvent(type, data);
			return event;
		}
	}
}
